'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/api/login', controller.home.index);
  router.post('/api/reg', controller.home.reg);
  router.post('/api/username', controller.home.username);
  router.get("/api/list",controller.home.list)
  router.post("/api/del",controller.home.del)
};
